/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.service.user;

import java.util.List;

import edu.uwm.universitydb.model.User;

/**
 * Interface defining the contract for <code>UserService</type> 
 * 
 * @author Shyam Nair
 */
public interface UserService
{
    /**
     * <code>createUser(...)</code>
     * This method will create a DB user and will insert
     * 
     * @param user
     * @param password
     * @return
     */
    boolean createUser(final User user, final String password);
    
    /**
     * <code>deleteUser(...)</code> method here
     * 
     * @param user
     * @return
     */
    boolean deleteUser(final String user);
    
    /**
     * <code>serachUserByName(...)</code> method here
     * 
     * @param userName
     * @return
     */
    User searchUserByID(final String userName);
    
    /**
     * <code>getAllUsers(...)</code> method here
     * 
     * @param userName
     * @return
     */
    List<User> getAllUsers();
    
}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 9, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 */